package com.xcw;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author bhx
 * @Date 2022/9/12 22:46
 * @Description TODO
 */
public class CareTaker {

    private List<Memento> mementoList = new ArrayList<>();

    public void add(Memento memento){
        mementoList.add(memento);
    }

    public Memento get(int index){
        return mementoList.get(index);
    }


}
